function justifyWidth() {
    var spanOrderId = $('.main>table .order-id');
    spanOrderId.width(0);
    spanOrderId.width($('.main>table').width()-340);
}

$(window).resize(function() {
    justifyWidth();
});

$(document).ready(function() {
    justifyWidth();
});
